﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using W.Product.Domain.Product;
using W.Product.Repository.Interface;

namespace W.Product.Repository.Impl
{
    public class ProductTypeRepository : BaseRepository<ProductType>, IProductTypeRepository
    {
        public ProductTypeRepository(EFProductDbContext db) : base(db)
        {
        }

        public async Task<int> Add(ProductType entity)
        {
            return await base.Add(entity);
        }

        public async Task<ProductType> FindById(int id)
        {
            return await base.FindById(id);

        }

        public async Task<List<ProductType>> GetAll()
        {
            return await base.GetAll();
        }

        public async Task<int> Update(ProductType entity)
        {
            return await base.Update(entity);
        }

        public async Task<int> Delete(int id)
        {
            return await base.Delete(id);
        }

        public async Task<int> IsUpdate(List<ProductType> values)
        {
            return await base.IsUpdate(values);
        }
    }
}
